#基础镜像
FROM tomcat:alpine

#添加中文字体
ADD fonts/* /usr/share/fonts/

#设置字符集
ENV LANG en_US.UTF-8

RUN apk add ttf-dejavu fontconfig && rm -rf /var/cache/apk/* && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

WORKDIR /usr/local/tomcat/webapps/

RUN rm -rf *
COPY *.war  ROOT.war

#指定交互端口
EXPOSE 8080

CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]
